package com.price.controller;

import com.price.vo.PriceVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/price")
public class PriceController {

    @GetMapping("/{id}")
    public PriceVO get(@PathVariable Long id){
        PriceVO priceVO=new PriceVO();
        priceVO.setId(id);
        System.out.println("price id:"+id);
        return priceVO;
    }
}
